package com.feng.vhr.service.impl;

import com.feng.vhr.pojo.MenuRole;
import com.feng.vhr.mapper.MenuRoleMapper;
import com.feng.vhr.service.IMenuRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author feng
 * @since 2022-05-09
 */
@Service
public class MenuRoleServiceImpl extends ServiceImpl<MenuRoleMapper, MenuRole> implements IMenuRoleService {
    @Autowired
    private MenuRoleMapper menuRoleMapper;

    @Override
    public List<Integer> getMidsByRid(int rid) {
        List<Integer> midsByRid = menuRoleMapper.getMidsByRid(rid);
        return midsByRid;
    }
}
